﻿using Microsoft.Phone.Controls;

namespace NavigationCoercion.Actions
{
    internal class RemoveStaticCountAction : RemoveActionBase
    {
        private readonly int _count;

        internal RemoveStaticCountAction(int count)
        {
            this._count = count;
        }

        internal override void PerformRemoval(PhoneApplicationFrame frame)
        {
            for (int i = 0; i < this._count; i++)
                frame.RemoveBackEntry();
        }
    }
}